package com.crm.jdy.common.pojo;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**   
 * @Description:(拜访活动计划实体类)
 * 
 * @version: V1.0
 * @author: kong
 * 
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class CallAplanInfo extends Model<CallAplanInfo> {

	private static final long serialVersionUID = 1616731234224L;

	@TableId(value = "aplan_id", type = IdType.ID_WORKER_STR)
	@ApiModelProperty(name = "aplanId" , value = "拜访计划id")
	private String aplanId;

	@NotBlank(message = "计划名字非空")
	@ApiModelProperty(name = "aplanName" , value = "计划名字")
	private String aplanName;
    
	@ApiModelProperty(name = "aplanLevel" , value = "优先级")
	private String aplanLevel;
    
	@ApiModelProperty(name = "aplanPerson" , value = "负责人")
	private String aplanPerson;
    
	@ApiModelProperty(name = "aplanStartTime" , value = "开始时间")
	private String aplanStartTime;

	@ApiModelProperty(name = "aplanEndTime" , value = "结束时间")
	private String aplanEndTime;
    
	@ApiModelProperty(name = "aplanTeam" , value = "团队")
	private String aplanTeam;

	@ApiModelProperty(name = "aplanActid" , value = "活动id")
	private String aplanActid;
    
	@ApiModelProperty(name = "aplanStatus" , value = "状态")
	private String aplanStatus;
    
	@ApiModelProperty(name = "aplanMoney" , value = "活动经费")
	private String aplanMoney;

	@JsonIgnore
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	@ApiModelProperty(name = "createTime" , value = "创建时间")
	@TableField(fill = FieldFill.INSERT)
	private Date createTime;

	@JsonIgnore
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	@ApiModelProperty(name = "updateTime" , value = "更新最新时间")
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private Date updateTime;

	@JsonIgnore
	@TableLogic
	@ApiModelProperty(name = "isDelete" , value = "0正常  1删除")
	private Integer isDelete;

	@NotNull(message = "合同id不为空")
	@ApiModelProperty(name = "parentId" , value = "合同ID")
	private String parentId;
    

}
